#ifndef JSONREADER_H_
#define JSONREADER_H_

#include <jsoncpp/json/reader.h>
#include <jsoncpp/json/value.h>

#include <map>
#include <string>

#include "BoardConfiguration.h"
#include "Candy.h"
#include "../common/general/Constantes.h"
#include "GeneralConfiguration.h"



class JSonReader {
	public:
		JSonReader(std::string file);
		~JSonReader();

		BoardConfiguration* getConfiguracionTablero();
		GeneralConfiguration* getConfiguracionGeneral();
	
	private:
		BoardConfiguration* configuracionTablero;
		GeneralConfiguration* configuracionGeneral;
		
		/* Devuelve un candy, dada su representación en json */
		Candy* candyFromString(std::string jsonName);
};

#endif
